﻿using PoliticalClassifier.Support;

namespace PoliticalClassifier.DataSource
{
    /// <summary>
    /// Provides an internal implementation of the "data source is missing 'id' column" error.
    /// </summary>
    internal class DataSourceMissingIDColumnError : DataSourceErrorBase
    {
        #region Construction
        /// <summary>
        /// Constructs a default "missing 'id' column" error.
        /// </summary>
        public DataSourceMissingIDColumnError()
            : base(DataSourceLoadErrorType.MissingIDColumn)
        {
        }
        #endregion

        #region Public Methods
        /// <summary>
        /// Gets a human readable error message.
        /// </summary>
        /// <returns>A human readable error message.</returns>
        public override string GetErrorMessage()
        {
            return string.Format(Resources.MissingIDColumnErrorMessage, Constants.COLUMN_NAME_ID);
        }
        #endregion
    }
}
